package com.njwb.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
public class SpringCloudNacosConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringCloudNacosConfigApplication.class, args);
        DataSourceConfig dataSourceConfig = context.getBean(DataSourceConfig.class);
        System.out.println(dataSourceConfig);
    }
}
